package com.lb.reward;

import java.util.Random;

public class Test {

        private static TestInstance instance  = new TestInstance();;

        public static void main(String[] args) {
                Runnable doReward = () -> {
                        instance.doReward();
                };

                for (int i=0;i<1;i++){
                        new Thread(doReward).start();
                }
                try {
                        Thread.sleep(1000);
                } catch (Exception e) {
                        e.printStackTrace();
                }
                instance.getRewards();

                Random rand = new Random();
                int randNum = rand.nextInt(100) + 1;
                System.out.println(randNum);
        }

}